package com.green.common.util.utils;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;


public class PropertiesReader {

    public static String read(String key,InputStream in){
        Properties p = new Properties();
        try {
            p.load(in);
            return p.getProperty(key);
        } catch (IOException e) {
            
            e.printStackTrace();
        }
        return null;
    }
    
}
